
.comment {
  position: relative;
  width: 100%;
  background: @white;
}

.comment-title {
  .flexbox();
  box-sizing: border-box;
  padding: 0 (10/@font-size-base)*1rem;

  span {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding: (10/@font-size-base)*1rem 0;

    border-bottom: 1px solid #8D8A97;
  }
}

.comment-item {
  padding-left: (15/@font-size-base)*1rem;

  .item-inner {
    position: relative;
    margin-top:(10/@font-size-base)*1rem;
    box-sizing: border-box;
    padding-right: (15/@font-size-base)*1rem;
    .hairline(bottom, #e1e1e1);
  }

  &:last-child {
    .item-inner {
      .hairline-remove(bottom);
    }
  }
  .comment-header {
    width: 100%;
    height: (40/@font-size-base)*1rem;
    .flexbox();
    .justify-content(space-between);
    .align-items(center);
    box-sizing: border-box;
  }
  .comment-user {
    .flexbox();
    height: (24/@font-size-base)*1rem;
    flex: 1;
    .flex-shrink(1);
    .align-items(center);
    img {
      display: inline-block;
      vertical-align: middle;
      width: (24/@font-size-base)*1rem;
      height: 100%;
      border-radius: 50%;
      margin-right: (5/@font-size-base)*1rem;
    }
    span {
      font-size: (13/@font-size-base)*1rem;
      color: #5C5767;
    }
  }
  .comment-time {
    width: 130px;
    line-height: (24/@font-size-base)*1rem;
    .flex-shrink(0);
    text-align: right;
    font-size: (12/@font-size-base)*1rem;
    color: #8D8A97;
  }

  .comment-body {
    box-sizing: border-box;
    padding: (10/@font-size-base)*1rem;
    .comment-content{
      font-size: (14/@font-size-base)*1rem;
      color: #453F52;
      &.ref {
        box-sizing: border-box;
        padding: (10/@font-size-base)*1rem;
        border: 1px solid #CACACA;
        color: lighten(#453F52, 20%);
      }
    }
    .comment-content + .comment-content{
      margin-top: (10/@font-size-base)*1rem;
    }

    p {
      margin: 0;
      line-height: 1.6;

    }
  }

  .comment-footer {
    .flexbox();
    width: 100%;
    height: (40/@font-size-base)*1rem;
    .justify-content(flex-end);
    .align-items(center);
    a {
      position: relative;
      display: block;
      width: (60/@font-size-base)*1rem;
      height: (20/@font-size-base)*1rem;
      box-sizing: border-box;
      padding-left: (25/@font-size-base)*1rem;
      line-height: (20/@font-size-base)*1rem;
      color: #8D8A97;
      &.ping {
        background: url("../../images/com_ping.png") no-repeat left center;
        background-size: (16/@font-size-base)*1rem;
      }
      &.zan {
        background: url("../../images/com_zan.png") no-repeat left center;
        background-size: (17/@font-size-base)*1rem;
        &.active {
          background: url("../../images/com_zan_a.png") no-repeat left center;
          background-size: (17/@font-size-base)*1rem;
        }
      }

      span {
        display: none;
        position: absolute;
        left: 0;
        right: auto;
        top: (-5/@font-size-base)*1rem;
        font-size: (12/@font-size-base)*1rem;
      }

      em {
        font-style: normal;
        font-size: (12/@font-size-base)*1rem;
      }
    }
  }
}